// components/yuding/yuding.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
      titles:{
        type:Array,
        value:[]
      },
    goodslist:{
        type:Array,
        value:[]
      }
  },

  /**
   * 组件的初始数据
   */
  data: {
    currentIndex:1,
    currentIndex1:1,
    status:false,
    imgurl:'../../imgs/yuding/img1.png'
  },

  /**
   * 组件的方法列表
   */
  methods: {
    remenClick(event){
      
        const index = event.currentTarget.dataset.index;
        this.setData({
          currentIndex:index
        })
      this.triggerEvent('titleclick',{index},{})
    },
    show(e){

      const index = e.currentTarget.dataset.index;
      this.setData({
        currentIndex1: index
      })
      this.setData({
        status:!this.data.status
      })
    },

  }
})
